package com.itheima.item.config;

import com.itheima.item.client.ItemClientFallback;
import feign.Logger;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableFeignClients(basePackages = "com.itheima.item.client")
public class FeignConfig {
    @Bean
    Logger.Level feignLoggerLevel(){
        return Logger.Level.FULL;
    }
    @Bean
    ItemClientFallback userClientFallback(){
        return new ItemClientFallback();
    }
}